﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Template.WinForm
{
    public class CacheService : Marmat.Foundation.ICache
    {
        private Dictionary<object, object> dic = new Dictionary<object, object>();

        public bool ContainsKey(object key)
        {
            return dic.ContainsKey(key);
        }

        public object GetValue(object key)
        {
            return dic[key];
        }

        public void SetValue(object key, object value)
        {
            dic[key] = value;
        }
    }
}
